Deprecated: Optional parameter $i declared before required parameter $data is implicitly treated as a required parameter in /home4/aipsa9vw/public_html/blogs/wp-content/themes/voice/include/modules.php on line 4

Deprecated: Optional parameter $i declared before required parameter $data is implicitly treated as a required parameter in /home4/aipsa9vw/public_html/blogs/wp-content/themes/voice/include/modules.php on line 245

Deprecated: Optional parameter $output declared before required parameter $attr is implicitly treated as a required parameter in /home4/aipsa9vw/public_html/blogs/wp-content/themes/voice/include/snippets.php on line 431

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /home4/aipsa9vw/public_html/blogs/wp-content/themes/voice/include/mega-menu.php on line 147

Warning: Cannot modify header information - headers already sent by (output started at /home4/aipsa9vw/public_html/blogs/wp-content/themes/voice/include/modules.php:4) in /home4/aipsa9vw/public_html/blogs/wp-includes/rest-api/class-wp-rest-server.php on line 1909

Warning: Cannot modify header information - headers already sent by (output started at /home4/aipsa9vw/public_html/blogs/wp-content/themes/voice/include/modules.php:4) in /home4/aipsa9vw/public_html/blogs/wp-includes/rest-api/class-wp-rest-server.php on line 1909

Warning: Cannot modify header information - headers already sent by (output started at /home4/aipsa9vw/public_html/blogs/wp-content/themes/voice/include/modules.php:4) in /home4/aipsa9vw/public_html/blogs/wp-includes/rest-api/class-wp-rest-server.php on line 1909

Warning: Cannot modify header information - headers already sent by (output started at /home4/aipsa9vw/public_html/blogs/wp-content/themes/voice/include/modules.php:4) in /home4/aipsa9vw/public_html/blogs/wp-includes/rest-api/class-wp-rest-server.php on line 1909

Warning: Cannot modify header information - headers already sent by (output started at /home4/aipsa9vw/public_html/blogs/wp-content/themes/voice/include/modules.php:4) in /home4/aipsa9vw/public_html/blogs/wp-includes/rest-api/class-wp-rest-server.php on line 1909

Warning: Cannot modify header information - headers already sent by (output started at /home4/aipsa9vw/public_html/blogs/wp-content/themes/voice/include/modules.php:4) in /home4/aipsa9vw/public_html/blogs/wp-includes/rest-api/class-wp-rest-server.php on line 1909

Warning: Cannot modify header information - headers already sent by (output started at /home4/aipsa9vw/public_html/blogs/wp-content/themes/voice/include/modules.php:4) in /home4/aipsa9vw/public_html/blogs/wp-includes/rest-api/class-wp-rest-server.php on line 1909

Warning: Cannot modify header information - headers already sent by (output started at /home4/aipsa9vw/public_html/blogs/wp-content/themes/voice/include/modules.php:4) in /home4/aipsa9vw/public_html/blogs/wp-includes/rest-api/class-wp-rest-server.php on line 1909
{"id":1,"date":"2022-08-07T15:44:37","date_gmt":"2022-08-07T15:44:37","guid":{"rendered":"https:\/\/aipsacademy.com\/blogs\/?p=1"},"modified":"2022-08-29T14:37:22","modified_gmt":"2022-08-29T14:37:22","slug":"hello-world","status":"publish","type":"post","link":"https:\/\/aipsacademy.com\/blogs\/2022\/08\/07\/hello-world\/","title":{"rendered":"12th Computer Science Important Program"},"content":{"rendered":"\n

W<\/strong>rite a program to check input number is prime or not<\/h4>\n\n\n\n
#include<iostream.h>\r\n#include<conio.h>\r\nvoid main()\r\n\r\n{\r\nclrscr();\r\nint n,i,j=0;\r\ncout<<\"Enter any number=\";\r\ncin>>n;\r\nfor(i=2;i<n;i++)\r\n{\r\nif(n%i==0)\r\n{\r\nj=1;\r\nbreak;\r\n}\r\n}\r\nif(j==1)\r\ncout<<\"Number is not prime\";\r\nelse\r\ncout<<\"Number is prime\";\r\ngetch();\r\n}<\/code><\/pre>\n\n\n\n

Output<\/strong><\/p>\n\n\n\n

Enter any number=5
Number is prime<\/p>\n\n\n\n

<\/p>\n\n\n\n

<\/p>\n\n\n\n