In this blog, I will upload what I know so that someone will be benefited.I am computer lovers so mostly my stuff will be around that and I will share the trending news in the world.
Adding a digit to all the digits of a number eg digit=4, number = 2875, o/p= 612119 C Program: #include<stdio.h> #include<conio.h> #include<string.h> int main() { int t,n,i=0; char num[100]; printf("Enter the digit: "); scanf("%d",&n); printf("Enter the number: "); scanf("%s",num); printf("o/p "); for(i=0;i<strlen(num);i++) { printf("%d",num[i]-'0'+n); } getch(); return 0; }
Artificial Intelligence 1. What is AI technique? Artificial Intelligence (AI) is the study of how to make computers do things which, at the moment, people do better. It is a method that exploits knowledge that should be represented in such a way that: · The knowledge captures generalizations. · It can be understood by people who must provide it. · It can be easily modified to correct errors and to reflect changes. · It can be used in situations even if it is not accurate and complete. · It helps to narrow the range of possibilities that is has to be considered. 2. What are the steps to be considered to solve a problem? To solve a particular problem, the following steps are taken into account, · Define the problem precisely. · Analyze the problem. · ...
Comments
Post a Comment