answersLogoWhite

0

#include <stdio.h>

int main (int argc, char **argv) {

printf ("1 1 2 1 1 2 1 3 1 2 1 1 2 1 3 1 2 1 4 1 2 1 3 1 2 1\n");

}

User Avatar

Wiki User

13y ago

What else can I help you with?

Continue Learning about Engineering

What is program for lucky number series?

1, 10, 3, 9, 5, 8, 7, ,7 ,9, 6 What is next weries? 11, 5 10 5 10 4 11 6 Which one?


How do you write a Program in java to cheak a number is automorphic number?

Source Code :: import java.io.*; class automorphic { protected static void main()throws IOException { BufferedReader in=new BufferedReader(new InputStreamReader(System.in)); System.out.print("Enter the number: "); int a=Integer.parseInt(in.readLine()),b=a,c=0,e=a*a; while(b&gt;0) { c++; b/=10; } double d=Math.pow(10,c-1); if(a==e%d) System.out.println("Automorphic number!!"); else System.out.println("Not an Automorphic number!!"); }}


How do you RSA algorithm c?

Perform encryption on the following PT using RSA and find the CT p = 3; q = 11; M = 5


How do you write even odd program in for loop in java script?

You can use the symbol % to see the remainder of the division problem. eg. document.write(11 % 3 + "") will display the number 2 since 3 goes into 11 three times with a remainder of 2. So here's some sample code: function oddEven(num){ if(num % 2 == 0){ return "even" } else{ return "odd" } }


How to start ntp services on Sun Solaris 8?

To activate the ntpserver try the following command:# svcadmenable svc:/network/ntp:defaultAfter that check if the service is running:# svcs-a | grep ntp# PS -ef| grep ntpAnswerThe above answer applies to Solaris10 and 11, but not to Solaris8.Solaris8 does NOT include an NTP program as part of the default OS distribution. However, there are several freeware packages which can be used to install it.To start such an NTP program, use the following command (run as root):/etc/init.d/ntpd start